from Marchines import SVM
dataArr,labelArr = SVM.loadDataSet('testSet.txt')
b,alphas = SVM.smoSimple(dataArr,labelArr,0.6,0.001,40)

print(b)
print(alphas[alphas>0])

# shape(alphas[alphas>0])


for i in range(100):
    if alphas[i] > 0.0:print(dataArr[i],labelArr[i])
